﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TT.HelpInfo;
using SQLHelper;
using Bill.BasDLL.dao;
using Bill.BasDLL.ety;
using System.Data;

namespace Bill.BasDLL.biz
{
    public class bizBillCode : basClassDeclare
    {
        daoOraBillCode doOraBillCode;

        public bizBillCode(TT.Module.sysLogin.etyBaeSystemParamter basSysPara)
        {
            doOraBillCode = new daoOraBillCode(basSysPara);
        }

        public bool Insert(etyBillCode eyTrk)
        {
            return doOraBillCode.Insert(eyTrk);
        }

        public bool Update(etyBillCode eyTrk)
        {
            return doOraBillCode.Update(eyTrk);
        }

        public bool Delete(etyBillCode eyTrk)
        {
            return doOraBillCode.Delete(eyTrk);
        }

        public IList<etyBillCode> GetBillCode()
        {
            DataTable dt = doOraBillCode.GetBillCode();
            IList<etyBillCode> ilRusult = TT.Common.Converts.ConvertToIList<etyBillCode>(dt);
            return ilRusult;
        }
    }
}
